import React,{useEffect} from 'react'
import SideMenu from '../../components/sandBox/SideMenu'
import TopHeader from '../../components/sandBox/TopHeader'
import NewsRouter from '../../components/sandBox/NewsRouter'
import './NewsSandBox.css'
import { Layout } from 'antd'
import nProgress from 'nprogress'
import 'nprogress/nprogress.css'
const { Content } = Layout;

function NewsSandBox() {
    nProgress.start()
    useEffect(()=>{
        nProgress.done()
    })
    return (
        <Layout>

            <SideMenu></SideMenu>
            <Layout className='site-layout'>
                <TopHeader></TopHeader>
                <Content
                    className="site-layout-background"
                    style={{
                        margin: '24px 16px',
                        padding: 24,
                        minHeight: 280,
                    }}
                >
                <NewsRouter></NewsRouter>
                </Content>

            </Layout>

        </Layout>
    )
}

export default NewsSandBox
